package com.sea.artefactos.action;

import com.sea.artefactos.service.ArtefactoService;

import com.sea.model.Artefacto;

public class SeleccionarArtefactoAction {
	
	private int idart;
	private int idcomprador;
	private ArtefactoService service = new ArtefactoService();
	
	
	private Artefacto artefacto; 
	
	public String execute(){
		String camino="success";
		artefacto=service.obtenerArtefacto(idart);
		
		
		System.out.println(artefacto.getIdart());
		
		return camino;
	}
	
	public int getIdcomprador() {
		return idcomprador;
	}

	public void setIdcomprador(int idcomprador) {
		this.idcomprador = idcomprador;
	}


	public int getIdart(){
		return idart;
	}
	
	public void setIdart(int idart){
		this.idart = idart;
	}
	
	
	
	public Artefacto getArtefacto(){
		return artefacto;
	}
	
	public void setArtefacto(Artefacto artefacto){
		this.artefacto = artefacto;
	}

}
